//
// Decompiled by Jadx - 409ms
//
package me.plusne.common.Json.Soul;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class AvatarSvgJson implements Serializable {
    private String backgroundColor;
    private String bgColor;
    private List<ResourcesDTO> resources;
    private String sex;

    public boolean canEqual(Object obj) {
        return obj instanceof AvatarSvgJson;
    }

    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof AvatarSvgJson)) {
            return false;
        }
        AvatarSvgJson avatarSvgJson = (AvatarSvgJson) obj;
        if (!avatarSvgJson.canEqual(this)) {
            return false;
        }
        String bgColor = getBgColor();
        String bgColor2 = avatarSvgJson.getBgColor();
        if (bgColor != null ? !bgColor.equals(bgColor2) : bgColor2 != null) {
            return false;
        }
        String sex = getSex();
        String sex2 = avatarSvgJson.getSex();
        if (sex != null ? !sex.equals(sex2) : sex2 != null) {
            return false;
        }
        String backgroundColor = getBackgroundColor();
        String backgroundColor2 = avatarSvgJson.getBackgroundColor();
        if (backgroundColor != null ? !backgroundColor.equals(backgroundColor2) : backgroundColor2 != null) {
            return false;
        }
        List<ResourcesDTO> resources = getResources();
        List<ResourcesDTO> resources2 = avatarSvgJson.getResources();
        return resources != null ? resources.equals(resources2) : resources2 == null;
    }

    public String getBackgroundColor() {
        return this.backgroundColor;
    }

    public String getBgColor() {
        return this.bgColor;
    }

    public List<ResourcesDTO> getResources() {
        return this.resources;
    }

    public String getSex() {
        return this.sex;
    }

    public int hashCode() {
        String bgColor = getBgColor();
        int hashCode = bgColor == null ? 43 : bgColor.hashCode();
        String sex = getSex();
        int hashCode2 = ((hashCode + 59) * 59) + (sex == null ? 43 : sex.hashCode());
        String backgroundColor = getBackgroundColor();
        int hashCode3 = (hashCode2 * 59) + (backgroundColor == null ? 43 : backgroundColor.hashCode());
        List<ResourcesDTO> resources = getResources();
        return (hashCode3 * 59) + (resources != null ? resources.hashCode() : 43);
    }

    public void setBackgroundColor(String str) {
        this.backgroundColor = str;
    }

    public void setBgColor(String str) {
        this.bgColor = str;
    }

    public void setResources(List<ResourcesDTO> list) {
        this.resources = list;
    }

    public void setSex(String str) {
        this.sex = str;
    }

    public String toString() {
        return "AvatarSvgJson(bgColor=" + getBgColor() + ", sex=" + getSex() + ", backgroundColor=" + getBackgroundColor() + ", resources=" + getResources() + ")";
    }

    public class ResourcesDTO implements Serializable {
        private String id;
        private String type;
        private TransformDTO transform = new TransformDTO();
        private List<String> color = new ArrayList();

        public boolean canEqual(Object obj) {
            return obj instanceof ResourcesDTO;
        }

        public boolean equals(Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof ResourcesDTO)) {
                return false;
            }
            ResourcesDTO ResourcesDTO = (ResourcesDTO) obj;
            if (!ResourcesDTO.canEqual(this)) {
                return false;
            }
            String id = getId();
            String id2 = ResourcesDTO.getId();
            if (id != null ? !id.equals(id2) : id2 != null) {
                return false;
            }
            String type = getType();
            String type2 = ResourcesDTO.getType();
            if (type != null ? !type.equals(type2) : type2 != null) {
                return false;
            }
            TransformDTO transform = getTransform();
            TransformDTO transform2 = ResourcesDTO.getTransform();
            if (transform != null ? !transform.equals(transform2) : transform2 != null) {
                return false;
            }
            List<String> color = getColor();
            List<String> color2 = ResourcesDTO.getColor();
            return color != null ? color.equals(color2) : color2 == null;
        }

        public List<String> getColor() {
            return this.color;
        }

        public String getId() {
            return this.id;
        }

        public TransformDTO getTransform() {
            return this.transform;
        }

        public String getType() {
            return this.type;
        }

        public int hashCode() {
            String id = getId();
            int hashCode = id == null ? 43 : id.hashCode();
            String type = getType();
            int hashCode2 = ((hashCode + 59) * 59) + (type == null ? 43 : type.hashCode());
            TransformDTO transform = getTransform();
            int hashCode3 = (hashCode2 * 59) + (transform == null ? 43 : transform.hashCode());
            List<String> color = getColor();
            return (hashCode3 * 59) + (color != null ? color.hashCode() : 43);
        }

        public void setColor(List<String> list) {
            this.color = list;
        }

        public void setId(String str) {
            this.id = str;
        }

        public void setTransform(TransformDTO transformDTO) {
            this.transform = transformDTO;
        }

        public void setType(String str) {
            this.type = str;
        }

        public String toString() {
            return "AvatarSvgJson.ResourcesDTO(id=" + getId() + ", type=" + getType() + ", transform=" + getTransform() + ", color=" + getColor() + ")";
        }

        public static class TransformDTO implements Serializable {
            private Integer x = 0;
            private Integer y = 0;
            private Integer scale = 0;
            private Integer rotate = 0;

            public boolean canEqual(Object obj) {
                return obj instanceof TransformDTO;
            }

            public boolean equals(Object obj) {
                if (obj == this) {
                    return true;
                }
                if (!(obj instanceof TransformDTO)) {
                    return false;
                }
                TransformDTO TransformDTO = (TransformDTO) obj;
                if (!TransformDTO.canEqual(this)) {
                    return false;
                }
                Integer x = getX();
                Integer x2 = TransformDTO.getX();
                if (x != null ? !x.equals(x2) : x2 != null) {
                    return false;
                }
                Integer y = getY();
                Integer y2 = TransformDTO.getY();
                if (y != null ? !y.equals(y2) : y2 != null) {
                    return false;
                }
                Integer scale = getScale();
                Integer scale2 = TransformDTO.getScale();
                if (scale != null ? !scale.equals(scale2) : scale2 != null) {
                    return false;
                }
                Integer rotate = getRotate();
                Integer rotate2 = TransformDTO.getRotate();
                return rotate != null ? rotate.equals(rotate2) : rotate2 == null;
            }

            public Integer getRotate() {
                return this.rotate;
            }

            public Integer getScale() {
                return this.scale;
            }

            public Integer getX() {
                return this.x;
            }

            public Integer getY() {
                return this.y;
            }

            public int hashCode() {
                Integer x = getX();
                int hashCode = x == null ? 43 : x.hashCode();
                Integer y = getY();
                int hashCode2 = ((hashCode + 59) * 59) + (y == null ? 43 : y.hashCode());
                Integer scale = getScale();
                int hashCode3 = (hashCode2 * 59) + (scale == null ? 43 : scale.hashCode());
                Integer rotate = getRotate();
                return (hashCode3 * 59) + (rotate != null ? rotate.hashCode() : 43);
            }

            public void setRotate(Integer num) {
                this.rotate = num;
            }

            public void setScale(Integer num) {
                this.scale = num;
            }

            public void setX(Integer num) {
                this.x = num;
            }

            public void setY(Integer num) {
                this.y = num;
            }

            public String toString() {
                return "AvatarSvgJson.ResourcesDTO.TransformDTO(x=" + getX() + ", y=" + getY() + ", scale=" + getScale() + ", rotate=" + getRotate() + ")";
            }
        }
    }
}
